package org.fall.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class CrowdWebMvcConfig implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        //浏览器访问的地址
        String urlPath = "/auth/to/member/reg/page.html";
        //目标视图的名称
        String viewName = "member-reg";
        registry.addViewController(urlPath).setViewName(viewName);
    }
}
